import { App } from 'vue'
import { api } from './api'
import Toast from './Toast'

export function install(app: App, options: Record<string, any> = {}): void {
	app.config.globalProperties.$toast = api(options)
	app.component('toast', Toast)
}
